package cpi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cpi.entity.Cpi;
import cpi.tools.CommonResult;

import java.util.List;
import java.util.Map;

/**
 * (Cpi)表服务接口
 *
 * @author makejava
 * @since 2022-07-07 11:25:10
 */
public interface CpiService extends IService<Cpi> {
    List<Map<String,Object>> byprovince(int page,int size,String type,int time);
    List<Map<String,Object>> bytype(String province,int time);
    List<String> alltype();
    List<String> allprovince();

    List<Cpi> listPage(int page, int size, String type, String province);

    int counts(String type, String province);

    CommonResult findCpiData(String province, String date, String type, Integer page, Integer size);

    boolean add(Cpi cpi);
    Map<String, Object> predict(String type, String province,int time);
}

